package com.ynet.middleground.user;


import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.apache.dubbo.config.spring.context.annotation.EnableDubboConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableDubbo
@EnableCaching
@EnableDubboConfig
@EnableScheduling
@DubboComponentScan("com.ynet.middleground.user.service")
@ImportResource("classpath:dubbo-provider.xml")
@EnableAsync
@SpringBootApplication
public class UserApplication {
    @Value("${spring.server.port}")
    private int serverPort;
    @Value("${spring.application.name}")
    private String applicationName;
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
